import { isEmptyObject } from "../../../utils/utils";
const app = getApp()

interface ITimeIndexPage {
  staffInfo?: Staff.IStaffItem
}

Page<any>({
  data: {
    id:''
  },
  onLoad(query) {
    const {resStaffInfo} = app.tempData
    if (!isEmptyObject(resStaffInfo)) {
      this.setData({
        staffInfo: resStaffInfo
      })
    }
  },
  // 事件处理函数对象
  events: {
    onBack() {
      console.log('onBack');
      app.tempData.resTimeInfo = {}
    },
  },
});
